package com.sdu.game.controller;


import com.sdu.game.mapper.PlayerMapper;
import com.sdu.game.mapper.RoomMapper;
import com.sdu.game.pojo.Player;
import com.sdu.game.pojo.PlayerExample;
import com.sdu.game.pojo.Room;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class Shujuk {

    @Autowired
    PlayerMapper playerMapper;

    @Autowired
    RoomMapper roomMapper;

    public void dd(){






        List<Room> roomlist=roomMapper.selectByExample(null);//查询所有房间
        System.out.println(roomlist.toString());



    }

}
